using System;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using DomainLayer.Data.Entities;
using Infrastructure.Data.Mapping;

namespace Infrastructure.Data
{
	public class LMS_RFDContext : DbContext
	{
		static LMS_RFDContext()
		{ 
			Database.SetInitializer<LMS_RFDContext>(null);
		}

		public DbSet<AbnormInfo> AbnormInfoes { get; set; }
		public DbSet<AbnormWaybill> AbnormWaybills { get; set; }
		public DbSet<AbnormWaybillLog> AbnormWaybillLogs { get; set; }
		public DbSet<AbnormWaybillReply> AbnormWaybillReplies { get; set; }
		public DbSet<Area> Areas { get; set; }
		public DbSet<AreaExpressCompany> AreaExpressCompanies { get; set; }
		public DbSet<AreaRoleUserMapping> AreaRoleUserMappings { get; set; }
		public DbSet<Audi> Audis { get; set; }
		public DbSet<Batch> Batches { get; set; }
		public DbSet<BatchDetail> BatchDetails { get; set; }
		public DbSet<City> Cities { get; set; }
		public DbSet<CustomerBatchPick> CustomerBatchPicks { get; set; }
		public DbSet<DispAddress> DispAddresses { get; set; }
		public DbSet<DispAddressVJia> DispAddressVJias { get; set; }
		public DbSet<District> Districts { get; set; }
		public DbSet<Employee> Employees { get; set; }
		public DbSet<EmployeeMenu> EmployeeMenus { get; set; }
		public DbSet<EmployeeRole> EmployeeRoles { get; set; }
		public DbSet<ExpressCompany> ExpressCompanies { get; set; }
		public DbSet<FMS_AudiRole> FMS_AudiRole { get; set; }
		public DbSet<FMS_BindFlow> FMS_BindFlow { get; set; }
		public DbSet<FMS_BizOrderType> FMS_BizOrderType { get; set; }
		public DbSet<FMS_FeeApply> FMS_FeeApply { get; set; }
		public DbSet<FMS_FeeApplyAttachment> FMS_FeeApplyAttachment { get; set; }
		public DbSet<FMS_FeeDetail> FMS_FeeDetail { get; set; }
		public DbSet<FMS_FeeSubject> FMS_FeeSubject { get; set; }
		public DbSet<FMS_FlowInfo> FMS_FlowInfo { get; set; }
		public DbSet<FMS_FlowOperatorLog> FMS_FlowOperatorLog { get; set; }
		public DbSet<FMS_FlowPointInfo> FMS_FlowPointInfo { get; set; }
		public DbSet<FMS_FlowProcess> FMS_FlowProcess { get; set; }
		public DbSet<FMS_FormSubject> FMS_FormSubject { get; set; }
		public DbSet<FMS_FormTemplate> FMS_FormTemplate { get; set; }
		public DbSet<FMS_LogicPoint> FMS_LogicPoint { get; set; }
		public DbSet<FMS_MerchantDeliverFee> FMS_MerchantDeliverFee { get; set; }
		public DbSet<FMS_MerchantDeliverFeeHistory> FMS_MerchantDeliverFeeHistory { get; set; }
		public DbSet<FMS_OperateLog> FMS_OperateLog { get; set; }
		public DbSet<FMS_PreeFee> FMS_PreeFee { get; set; }
		public DbSet<FMS_PromptOrder> FMS_PromptOrder { get; set; }
		public DbSet<FMS_Rule> FMS_Rule { get; set; }
		public DbSet<FMS_RuleVsFlowNode> FMS_RuleVsFlowNode { get; set; }
		public DbSet<FMS_StationDailyFinanceDetails> FMS_StationDailyFinanceDetails { get; set; }
		public DbSet<FMS_StationDailyFinanceSum> FMS_StationDailyFinanceSum { get; set; }
		public DbSet<FMS_StationDeliverFee> FMS_StationDeliverFee { get; set; }
		public DbSet<FMS_StationDeliverFeeHistory> FMS_StationDeliverFeeHistory { get; set; }
		public DbSet<FMS_SubjectTemplate> FMS_SubjectTemplate { get; set; }
		public DbSet<FMS_SubjectTemplateItem> FMS_SubjectTemplateItem { get; set; }
		public DbSet<FMS_UrgeToBX> FMS_UrgeToBX { get; set; }
		public DbSet<FMS_UserArrears> FMS_UserArrears { get; set; }
		public DbSet<Formula> Formulae { get; set; }
		public DbSet<GPSOrder> GPSOrders { get; set; }
		public DbSet<GPSOrderStatu> GPSOrderStatus { get; set; }
		public DbSet<InBound> InBounds { get; set; }
		public DbSet<InBoundDetail> InBoundDetails { get; set; }
		public DbSet<LineDeliver> LineDelivers { get; set; }
		public DbSet<LineInfo> LineInfoes { get; set; }
		public DbSet<Menu> Menus { get; set; }
		public DbSet<MerchantBaseInfo> MerchantBaseInfoes { get; set; }
		public DbSet<MyLog> MyLogs { get; set; }
		public DbSet<NoGenerate> NoGenerates { get; set; }
		public DbSet<Notice> Notices { get; set; }
		public DbSet<OperateLog> OperateLogs { get; set; }
		public DbSet<OutBound> OutBounds { get; set; }
		public DbSet<OutBoundDetail> OutBoundDetails { get; set; }
		public DbSet<Package> Packages { get; set; }
		public DbSet<PackageDetail> PackageDetails { get; set; }
		public DbSet<Payment> Payments { get; set; }
		public DbSet<PhoneMessageTemplate> PhoneMessageTemplates { get; set; }
		public DbSet<PMS_PermissionRole> PMS_PermissionRole { get; set; }
		public DbSet<PMS_PermissionRule> PMS_PermissionRule { get; set; }
		public DbSet<PMS_RoleNestMapping> PMS_RoleNestMapping { get; set; }
		public DbSet<PMS_RoleRulesMapping> PMS_RoleRulesMapping { get; set; }
		public DbSet<PMS_RuleResourceNode> PMS_RuleResourceNode { get; set; }
		public DbSet<PMS_RuleType> PMS_RuleType { get; set; }
		public DbSet<PMS_SubSystem> PMS_SubSystem { get; set; }
		public DbSet<PMS_UserRolesMapping> PMS_UserRolesMapping { get; set; }
		public DbSet<Province> Provinces { get; set; }
		public DbSet<ReturnReason> ReturnReasons { get; set; }
		public DbSet<Role> Roles { get; set; }
		public DbSet<RoleMenu> RoleMenus { get; set; }
		public DbSet<ServiceLog> ServiceLogs { get; set; }
		public DbSet<SourceStatusMapping> SourceStatusMappings { get; set; }
		public DbSet<StationDailySum> StationDailySums { get; set; }
		public DbSet<StatusCodeInfo> StatusCodeInfoes { get; set; }
		public DbSet<StatusInfo> StatusInfoes { get; set; }
		public DbSet<sysdiagram> sysdiagrams { get; set; }
		public DbSet<TransitBox> TransitBoxes { get; set; }
		public DbSet<Truck> Trucks { get; set; }
		public DbSet<TurnStation> TurnStations { get; set; }
		public DbSet<UnionPayTrade> UnionPayTrades { get; set; }
		public DbSet<UnionPayTradeLog> UnionPayTradeLogs { get; set; }
		public DbSet<UnusualWaybill> UnusualWaybills { get; set; }
		public DbSet<UnusualWaybillReply> UnusualWaybillReplies { get; set; }
		public DbSet<UploadOrderRecord> UploadOrderRecords { get; set; }
		public DbSet<Warehouse> Warehouses { get; set; }
		public DbSet<Waybill> Waybills { get; set; }
		public DbSet<WaybillBackStation> WaybillBackStations { get; set; }
		public DbSet<WaybillComplaintInfo> WaybillComplaintInfoes { get; set; }
		public DbSet<WaybillComplaintLog> WaybillComplaintLogs { get; set; }
		public DbSet<WaybillDeal> WaybillDeals { get; set; }
		public DbSet<WaybillException> WaybillExceptions { get; set; }
		public DbSet<WaybillExceptionLog> WaybillExceptionLogs { get; set; }
		public DbSet<WaybillGoodsDetail> WaybillGoodsDetails { get; set; }
		public DbSet<WaybillInfo> WaybillInfoes { get; set; }
		public DbSet<WaybillIntoStation> WaybillIntoStations { get; set; }
		public DbSet<WaybillOutStation> WaybillOutStations { get; set; }
		public DbSet<WaybillSignInfo> WaybillSignInfoes { get; set; }
		public DbSet<WaybillTakeSendInfo> WaybillTakeSendInfoes { get; set; }
		public DbSet<WaybillThirdPartyInfo> WaybillThirdPartyInfoes { get; set; }
		public DbSet<WaybillTransfer> WaybillTransfers { get; set; }
		public DbSet<WaybillTruck> WaybillTrucks { get; set; }
		public DbSet<WaybillDistribution> WaybillDistributions { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
		{
            modelBuilder.Conventions.Remove<IncludeMetadataConvention>();
			modelBuilder.Configurations.Add(new AbnormInfoMap());
			modelBuilder.Configurations.Add(new AbnormWaybillMap());
			modelBuilder.Configurations.Add(new AbnormWaybillLogMap());
			modelBuilder.Configurations.Add(new AbnormWaybillReplyMap());
			modelBuilder.Configurations.Add(new AreaMap());
			modelBuilder.Configurations.Add(new AreaExpressCompanyMap());
			modelBuilder.Configurations.Add(new AreaRoleUserMappingMap());
			modelBuilder.Configurations.Add(new AudiMap());
			modelBuilder.Configurations.Add(new BatchMap());
			modelBuilder.Configurations.Add(new BatchDetailMap());
			modelBuilder.Configurations.Add(new CityMap());
			modelBuilder.Configurations.Add(new CustomerBatchPickMap());
			modelBuilder.Configurations.Add(new DispAddressMap());
			modelBuilder.Configurations.Add(new DispAddressVJiaMap());
			modelBuilder.Configurations.Add(new DistrictMap());
			modelBuilder.Configurations.Add(new EmployeeMap());
			modelBuilder.Configurations.Add(new EmployeeMenuMap());
			modelBuilder.Configurations.Add(new EmployeeRoleMap());
			modelBuilder.Configurations.Add(new ExpressCompanyMap());
			modelBuilder.Configurations.Add(new FMS_AudiRoleMap());
			modelBuilder.Configurations.Add(new FMS_BindFlowMap());
			modelBuilder.Configurations.Add(new FMS_BizOrderTypeMap());
			modelBuilder.Configurations.Add(new FMS_FeeApplyMap());
			modelBuilder.Configurations.Add(new FMS_FeeApplyAttachmentMap());
			modelBuilder.Configurations.Add(new FMS_FeeDetailMap());
			modelBuilder.Configurations.Add(new FMS_FeeSubjectMap());
			modelBuilder.Configurations.Add(new FMS_FlowInfoMap());
			modelBuilder.Configurations.Add(new FMS_FlowOperatorLogMap());
			modelBuilder.Configurations.Add(new FMS_FlowPointInfoMap());
			modelBuilder.Configurations.Add(new FMS_FlowProcessMap());
			modelBuilder.Configurations.Add(new FMS_FormSubjectMap());
			modelBuilder.Configurations.Add(new FMS_FormTemplateMap());
			modelBuilder.Configurations.Add(new FMS_LogicPointMap());
			modelBuilder.Configurations.Add(new FMS_MerchantDeliverFeeMap());
			modelBuilder.Configurations.Add(new FMS_MerchantDeliverFeeHistoryMap());
			modelBuilder.Configurations.Add(new FMS_OperateLogMap());
			modelBuilder.Configurations.Add(new FMS_PreeFeeMap());
			modelBuilder.Configurations.Add(new FMS_PromptOrderMap());
			modelBuilder.Configurations.Add(new FMS_RuleMap());
			modelBuilder.Configurations.Add(new FMS_RuleVsFlowNodeMap());
			modelBuilder.Configurations.Add(new FMS_StationDailyFinanceDetailsMap());
			modelBuilder.Configurations.Add(new FMS_StationDailyFinanceSumMap());
			modelBuilder.Configurations.Add(new FMS_StationDeliverFeeMap());
			modelBuilder.Configurations.Add(new FMS_StationDeliverFeeHistoryMap());
			modelBuilder.Configurations.Add(new FMS_SubjectTemplateMap());
			modelBuilder.Configurations.Add(new FMS_SubjectTemplateItemMap());
			modelBuilder.Configurations.Add(new FMS_UrgeToBXMap());
			modelBuilder.Configurations.Add(new FMS_UserArrearsMap());
			modelBuilder.Configurations.Add(new FormulaMap());
			modelBuilder.Configurations.Add(new GPSOrderMap());
			modelBuilder.Configurations.Add(new GPSOrderStatuMap());
			modelBuilder.Configurations.Add(new InBoundMap());
			modelBuilder.Configurations.Add(new InBoundDetailMap());
			modelBuilder.Configurations.Add(new LineDeliverMap());
			modelBuilder.Configurations.Add(new LineInfoMap());
			modelBuilder.Configurations.Add(new MenuMap());
			modelBuilder.Configurations.Add(new MerchantBaseInfoMap());
			modelBuilder.Configurations.Add(new MyLogMap());
			modelBuilder.Configurations.Add(new NoGenerateMap());
			modelBuilder.Configurations.Add(new NoticeMap());
			modelBuilder.Configurations.Add(new OperateLogMap());
			modelBuilder.Configurations.Add(new OutBoundMap());
			modelBuilder.Configurations.Add(new OutBoundDetailMap());
			modelBuilder.Configurations.Add(new PackageMap());
			modelBuilder.Configurations.Add(new PackageDetailMap());
			modelBuilder.Configurations.Add(new PaymentMap());
			modelBuilder.Configurations.Add(new PhoneMessageTemplateMap());
			modelBuilder.Configurations.Add(new PMS_PermissionRoleMap());
			modelBuilder.Configurations.Add(new PMS_PermissionRuleMap());
			modelBuilder.Configurations.Add(new PMS_RoleNestMappingMap());
			modelBuilder.Configurations.Add(new PMS_RoleRulesMappingMap());
			modelBuilder.Configurations.Add(new PMS_RuleResourceNodeMap());
			modelBuilder.Configurations.Add(new PMS_RuleTypeMap());
			modelBuilder.Configurations.Add(new PMS_SubSystemMap());
			modelBuilder.Configurations.Add(new PMS_UserRolesMappingMap());
			modelBuilder.Configurations.Add(new ProvinceMap());
			modelBuilder.Configurations.Add(new ReturnReasonMap());
			modelBuilder.Configurations.Add(new RoleMap());
			modelBuilder.Configurations.Add(new RoleMenuMap());
			modelBuilder.Configurations.Add(new ServiceLogMap());
			modelBuilder.Configurations.Add(new SourceStatusMappingMap());
			modelBuilder.Configurations.Add(new StationDailySumMap());
			modelBuilder.Configurations.Add(new StatusCodeInfoMap());
			modelBuilder.Configurations.Add(new StatusInfoMap());
			modelBuilder.Configurations.Add(new sysdiagramMap());
			modelBuilder.Configurations.Add(new TransitBoxMap());
			modelBuilder.Configurations.Add(new TruckMap());
			modelBuilder.Configurations.Add(new TurnStationMap());
			modelBuilder.Configurations.Add(new UnionPayTradeMap());
			modelBuilder.Configurations.Add(new UnionPayTradeLogMap());
			modelBuilder.Configurations.Add(new UnusualWaybillMap());
			modelBuilder.Configurations.Add(new UnusualWaybillReplyMap());
			modelBuilder.Configurations.Add(new UploadOrderRecordMap());
			modelBuilder.Configurations.Add(new WarehouseMap());
			modelBuilder.Configurations.Add(new WaybillMap());
			modelBuilder.Configurations.Add(new WaybillBackStationMap());
			modelBuilder.Configurations.Add(new WaybillComplaintInfoMap());
			modelBuilder.Configurations.Add(new WaybillComplaintLogMap());
			modelBuilder.Configurations.Add(new WaybillDealMap());
			modelBuilder.Configurations.Add(new WaybillExceptionMap());
			modelBuilder.Configurations.Add(new WaybillExceptionLogMap());
			modelBuilder.Configurations.Add(new WaybillGoodsDetailMap());
			modelBuilder.Configurations.Add(new WaybillInfoMap());
			modelBuilder.Configurations.Add(new WaybillIntoStationMap());
			modelBuilder.Configurations.Add(new WaybillOutStationMap());
			modelBuilder.Configurations.Add(new WaybillSignInfoMap());
			modelBuilder.Configurations.Add(new WaybillTakeSendInfoMap());
			modelBuilder.Configurations.Add(new WaybillThirdPartyInfoMap());
			modelBuilder.Configurations.Add(new WaybillTransferMap());
			modelBuilder.Configurations.Add(new WaybillTruckMap());
			modelBuilder.Configurations.Add(new WaybillDistributionMap());
		}
	}
}

